#include <iostream>
#include <gtest/gtest.h>

// int main() {
//     // 编写测试用例
//     int result = my_square(3);
//     if (result == 9) {
//         std::cout << "Addition test passed!\n";
//         return 0; 
//     } else {
//         std::cout << "Addition test failed!\n";
//         return 1; 
//     }
// }

TEST(SimpleTestSuite, Addition) {
    int a = 1;
    int b = 1;

    EXPECT_EQ(a + b, 3);  // 断言：期望 a + b 等于 3
}

TEST(SimpleTestSuite, Subtraction) {
    double x = 3.0;
    double y = 1.5;

    EXPECT_GT(x - y, 1.0);  // 断言：期望 x - y 大于 1.0
}


int main(int argc, char **argv) {
    ::testing::InitGoogleTest(&argc, argv);  
    return RUN_ALL_TESTS(); 
}